//package com.kate.mall.order.state;
//
//import com.kate.mall.common.constants.OrderStatus;
//import com.kate.mall.common.utils.DateProvider;
//import com.kate.mall.order.dao.OrderDao;
//import com.kate.mall.order.dto.OrderDTO;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
///**
// * @author 新梦想.陈超
// * @version 2021.2
// * @Description: {TODO}
// * @date 2023/6/29 下午4:52
// */
//@Component
//public class WaitForPrePayOrderState extends AbstractOrderState {
//    @Autowired
//    public WaitForPrePayOrderState(OrderDao orderDao, DateProvider dateProvider) {
//        super(orderDao, dateProvider);
//    }
//    public Integer getOrderStatus(OrderDTO order) {
//        return OrderStatus.WAIT_FOR_PRE_PAY;
//    }
//
//    @Override
//    public Boolean canCancel(OrderDTO order) throws Exception {
//        return true;
//    }
//
//    @Override
//    public Boolean canPay(OrderDTO order) throws Exception {
//        return true;
//    }
//}